// 四清三停四建设
import type { AppRouteModule } from '/@/router/types';

import { getParentLayout, LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';

const charts: AppRouteModule = {
  path: '/account',
  name: 'account',
  component: LAYOUT,
  redirect: '/account/selfaccount',
  meta: {
    orderNo: 402,
    icon: 'ion:bar-chart-outline',
    title: t('routes.demo.account.root'),
    roles: ['Admin', 'City', 'Area'],
    //  userGroups: ['Admin', 'FireControl', 'Housing', 'Police'],
    userGroups: ['FireControl'],
  },
  children: [
    // 自查端用户
    {
      path: 'selfaccount',
      name: 'selflist',
      meta: {
        title: t('routes.demo.account.selfaccount'),
        roles: ['Admin', 'City', 'Area', 'Street', 'Community'],
        userGroups: ['Admin', 'FireControl'],
      },
      component: () => import('/@/views/account/selflist/index.vue'),
    },
    //京办端用户
    {
      path: 'checkaccount',
      name: 'checkuser',
      meta: {
        title: t('routes.demo.account.checkaccount'),
        roles: ['Admin', 'City', 'Area', 'Street', 'Community'],
        userGroups: ['Admin', 'FireControl'],
      },
      component: () => import('/@/views/account/checkuser/index.vue'),
    },
  ],
};

export default charts;
